package com.lwy.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.List;

@Data
@TableName(value = "resouces_info")
public class ResoucesInfo {
    /**
    * 资源ID
    */
    @TableId
    private Integer id;


    @TableField(value = "parent_id")
    private Integer parentId;
    private String rindex;
    /**
    * 资源标识
    */
    private String name;

    /**
    * 资源URL
    */
    private String path;


    @JsonInclude(JsonInclude.Include.NON_NULL)
    @TableField(exist = false)
    private List<ResoucesInfo> list;
}